@model IEnumerable<test1.Models.Project>

@{
    ViewData["Title"] = "Index";
}


<p>
    <a asp-action="Create">新增</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                组织单位
            </th>
            <th>
                项目状态
            </th>
            <th>
                项目名称
            </th>
            <th>
                项目投资
            </th>
            <th>
                开始时间
            </th>
            <th>
                结束时间
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.organization)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.status)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.projectName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.investment)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.starttime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.endtime)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.Id">编辑</a> |
                <a asp-action="Details" asp-route-id="@item.Id">详情</a> |
                <a asp-action="Delete" asp-route-id="@item.Id">删除</a>
            </td>
        </tr>
}
    </tbody>
</table>
